package me.chanjar.weixin.component.bean.author;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 授权公众号或小程序的接口调用凭据（令牌）
 * 
 * @author Debenson
 * @since 0.1
 */
public class WxAuthorizerAccessToken implements Serializable {
  private static final long serialVersionUID = -727015449928622657L;

  /** 授权方令牌 */
  @JsonProperty("authorizer_access_token")
  private String authorizerAccessToken;

  /** 有效期，为2小时 */
  @JsonProperty("expires_in")
  private Integer expiresIn;

  /** 刷新令牌 */
  @JsonProperty("authorizer_refresh_token")
  private String authorizerRefreshToken;

  public String getAuthorizerAccessToken() {
    return authorizerAccessToken;
  }

  public void setAuthorizerAccessToken(String authorizerAccessToken) {
    this.authorizerAccessToken = authorizerAccessToken;
  }

  public Integer getExpiresIn() {
    return expiresIn;
  }

  public void setExpiresIn(Integer expiresIn) {
    this.expiresIn = expiresIn;
  }

  public String getAuthorizerRefreshToken() {
    return authorizerRefreshToken;
  }

  public void setAuthorizerRefreshToken(String authorizerRefreshToken) {
    this.authorizerRefreshToken = authorizerRefreshToken;
  }

}
